package com.object.model.execute.impl;

import com.alibaba.fastjson.JSON;
import com.object.model.ModelBeanName;
import com.object.model.execute.ModelExecute;
import com.object.module.lq.sys.entity.TRoleEntity;
import com.object.module.lq.sys.service.TRoleService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Li Qing
 * date: 2025/6/5 21:56
 * description:
 */
@Service(ModelBeanName.GET_ROLE_TOOL)
public class GetRoleTool implements ModelExecute {
    @Resource
    private TRoleService roleService;

    public String execute(String json) {
        List<TRoleEntity> list = roleService.list();
        return objConvertStr(list);
    }
}
